package com.aaa.commen.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @PackageName: com.wjw.properties
 * @ClassName: MyRedisProperties
 * @Description:
 * @author: 王嘉威
 * @Date: 2021/1/12 19:40
 */
@ConfigurationProperties(MyRedisProperties.PREFIX)
@Data
public class MyRedisProperties {
    public static  final String  PREFIX = "spring.redis";

    private  Integer  database;
    private  String  host;
    private  Integer  port;
    private  String  password;
    private  Integer  maxTotal;
    private  Integer  maxWaitMillis;
    private  Integer  maxIdle;
    private  Integer  minIdle;
    private  Integer  timeout;
}
